package com.homedo.microservice.open.service.gateway.manager.web.api;

import com.homedo.common.bean.data.RequestData;
import com.homedo.common.bean.data.ResponseData;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.ZuulFilterAddAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.ZuulFilterPageAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.ZuulFilterUpdateAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.ZuulFilterAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.ZuulFilterPageAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.constant.RemoteService4OpenServiceGatewayManagerWebServiceConstant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(RemoteService4OpenServiceGatewayManagerWebServiceConstant.SERVICE_ID + "/filter")
public interface IZuulFilterServiceRemote {

    @GetMapping(value = "list")
    ResponseData<ZuulFilterPageAResp> list(ZuulFilterPageAReq zuulFilterPageAReq);

    @PostMapping(value = "update")
    ResponseData update(RequestData<ZuulFilterUpdateAReq> requestData);

    @PostMapping(value = "add")
    ResponseData<ZuulFilterAResp> add(RequestData<ZuulFilterAddAReq> requestData);


    @GetMapping(value = "detail/{id}")
    ResponseData<ZuulFilterAResp> detail(Integer id);

    @GetMapping(value = "delete/{id}")
    ResponseData delete(Integer id);

}
